#include <REGX52.H>
#include <LED.h>

extern unsigned int T1count;

void basic(){
	if(T1count == 25){
		T1count = 0;
		LED1 = ~LED1;
	}
}

void pro1(){
	unsigned int* p = &T1count;
	if(T1count == 50){
		LED1 = 1;
	}
	if(T1count == 250){
		LED1 = 0;
		*p = 0;
	}
}

void pro2(){
  unsigned int* p = &T1count;
	switch(T1count){
		case 200:
			LED1 = 0;
			break;
		case 210:
			LED3 = 0;
			break;
		case 400:
			LED3 = 1;
			break;
		case 450:
			LED1 = 1;
			*p = 0;
			break;
	}
}